//
// Created by root on 19-8-23.
//

#ifndef ANDOVA_ANDROID_UTILITY_H
#define ANDOVA_ANDROID_UTILITY_H

#include <android/log.h>

#define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, "GLES_Native", __VA_ARGS__))
#define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, "GLES_Native", __VA_ARGS__))

#include <jni.h>
#include <android/bitmap.h>
#include <sys/types.h>

void glesGetTextForAsset(JNIEnv *env, jobject assetManager, const char *filename, char *ret);

uint glesLoadSingleTexture2D(JNIEnv *env, jobject bitmap, AndroidBitmapInfo *bmpInfo = nullptr);

#endif
